﻿using ML.Entity;
using System.Collections.Generic;

namespace ML.IBusiness
{
    /// <summary>
    /// 用户邀请人业务接口
    /// </summary>
    public interface IUserInvitationBusiness
    {
        /// <summary>
        /// 根据用户Id查询用户的被邀请人信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        BaseResult<IEnumerable<UserInvitationResponse>> GetUserInvitationByUserId(string id);

        /// <summary>
        /// 添加邀请信息
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        BaseResult<bool> Add(UserInvitationEntity entity);

        /// <summary>
        /// 检查是否已经邀请
        /// </summary>
        /// <param name="invitationId">邀请人Id</param>
        /// <param name="beInvitationId">被邀请人Id</param>
        /// <returns></returns>
        BaseResult<bool> CheckAlreadyInvited(string invitationId, string beInvitationId);
    }
}